import React from 'react';
import { Link, Route } from 'react-router-dom';
import { Outlet } from 'react-router-dom';
console.log('加载Home');
export default function Home() {
  return (
    <div>
      {/* 一级路由的视图如下: */}
      <hr />
      <hr />
      <hr />
      Home页面
      <Link to="/Home/test1">test1</Link>
      <Link to="/Home/test2">test2</Link>
      {/* 在这渲染二级路由的视图,所以就在这配置二级路由 */}

      <Outlet></Outlet>
      <hr />
      <hr />
      <hr />
    </div>
  );
}
